import request from './request'
export const LOGIN = (params) => request.request({url: '/sys/login', method: 'post', params})

export const GETMENULIST = () => request.request({url: '/sys/menu/nav', method: 'get'})

export const useMock = () => request.request({url: '/api/usemock', method: 'get', isMock: true})

export const useMockPost = (params) => request.request({url: '/api/usemock', method: 'post', params, isMock: true})

export const useMockget = (params) => request.request({url: '/api/usemockinfo', params, isMock: true})

export const useCommentList = (params) => request.request({url: '/api/comment/list', params, isMock: true})

export const usetextapi = params => request.request({url: '/api', method: 'post', params })

export const uploadmerge = params => request.request({url: '/merge', method: 'post', params })
